/*
 * Bundle.java
 * 
 * Created on Jul 12, 2007, 9:25:03 PM
 * 
 * Copyright (c) 2007 Daniel Gronau
 *
 * This file is part of KanjiTori.
 *
 * KanjiTori is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * KanjiTori is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */

package kanjitori.util;

import java.util.ResourceBundle;

/**
 *
 * @author DGronau
 */
public class Bundle {

    private static ResourceBundle bundle = ResourceBundle.getBundle("kanjitori/resources/String");
    
    private Bundle() {
    }
    
    public static String getString(String key) {
        try {
            return bundle.getString(key);
        } catch (Exception ex) {
            return "?" + key + "?";
        }
    }

}
